﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSCC.Interface;

namespace TSCC.Service
{
    public class CMBItem:iCMBItem
    {
        protected string itemText = string.Empty;
        protected object itemValue = null;

        public CMBItem(string p_txt, object p_value)
        {
            SetItemTextValue(p_txt, p_value);
        }


        #region iCMBItem Members

        public string GetItemText()
        {
            return this.itemText;
        }

        public object GetItemValue()
        {
            return itemValue;
        }

        public void SetItemTextValue(string p_text, object p_value)
        {
            this.itemText = p_text;
            this.itemValue = p_value;            
        }

        #endregion

        public override string ToString()
        {
            return itemText;
        }
    }
}
